#ifndef ShapeWithStyle_H
#define ShapeWithStyle_H

#include "FillStyleArray.h"
#include "LineStyleArray.h"
#include "ShapeRecord.h"

namespace swfstream {
class ShapeWithStyle {
public:
	FillStyleArray* FillStyles; ///< FILLSTYLEARRAY Array of fill styles
	LineStyleArray* LineStyles; ///< LINESTYLEARRAY Array of line styles
	uint8 NumFillBits; ///< UB[4] Number of fill index bits
	uint8 NumLineBits; ///< UB[4] Number of line index bits
	std::vector<ShapeRecord*>* ShapeRecords; ///< SHAPERECORD[one or more]Shape records (see following)
	void print();
	static ShapeWithStyle* from_file(FILE* f, int shape_version);
};
}

#endif
